package com.aspire.boc.mms.wmf.service.impl;

import java.math.BigDecimal;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.aspire.boc.mms.wmf.dao.wmf.WmfResourceMapper;
import com.aspire.boc.mms.wmf.model.WmfResourceExample;
import com.aspire.boc.mms.wmf.service.IndexService;

@Service
public class IndexServiceImpl implements IndexService{

	@Transactional
	@Override
	public List<com.aspire.boc.mms.wmf.model.WmfResource> getResource(String pid) {
		WmfResourceExample example = new WmfResourceExample();
		example.createCriteria().andParentidEqualTo(new BigDecimal(pid)).andStatusEqualTo((short) 1);
		return resourceMapper.selectByExample(example);
	}
	
	//@Resource
	@Autowired
	private WmfResourceMapper resourceMapper;
}
